package cn.com.bod.fas.common.service;

import cn.com.bod.fas.common.constant.Constants;
import cn.com.bod.fas.common.service.impl.FeignErrorMessageServiceImpl;
import cn.com.yusys.yusp.commons.exception.Message;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @description 错误消息消费接口 
 * @author chenyuanxian
 * @date 2019年9月25日 下午2:44:06
 * @version 1.0.0
 * @Copyright (c) scfhdt
 */
@FeignClient(fallback = FeignErrorMessageServiceImpl.class, name = Constants.YUSP_APP_COMMON_SERVICE_NAME)
public interface FeignErrorMessageService {
  
	@RequestMapping(method = {RequestMethod.GET}, value = {"/api/provider/getMessage"})
	Message getMessage(@RequestParam("code") String paramString);

}
